/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Nas
 */
@Entity
@Table(name = "EMPLEADO")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Empleado.findAll", query = "SELECT e FROM Empleado e"),
    @NamedQuery(name = "Empleado.findByIdEmpleado", query = "SELECT e FROM Empleado e WHERE e.idEmpleado = :idEmpleado"),
    @NamedQuery(name = "Empleado.findByNombre", query = "SELECT e FROM Empleado e WHERE e.nombre = :nombre"),
    @NamedQuery(name = "Empleado.findByApellido", query = "SELECT e FROM Empleado e WHERE e.apellido = :apellido"),
    @NamedQuery(name = "Empleado.findByTelefono", query = "SELECT e FROM Empleado e WHERE e.telefono = :telefono"),
    @NamedQuery(name = "Empleado.findByEstado", query = "SELECT e FROM Empleado e WHERE e.estado = :estado"),
    @NamedQuery(name = "Empleado.findByIdTipDocIdenti", query = "SELECT e FROM Empleado e WHERE e.idTipDocIdenti = :idTipDocIdenti"),
    @NamedQuery(name = "Empleado.findByDocIdenti", query = "SELECT e FROM Empleado e WHERE e.docIdenti = :docIdenti"),
    @NamedQuery(name = "Empleado.findByEMail", query = "SELECT e FROM Empleado e WHERE e.eMail = :eMail"),
    @NamedQuery(name = "Empleado.findByProfesion", query = "SELECT e FROM Empleado e WHERE e.profesion = :profesion"),
    @NamedQuery(name = "Empleado.findByIdUsuar", query = "SELECT e FROM Empleado e WHERE e.idUsuar = :idUsuar")})
public class Empleado implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID_EMPLEADO")
    private Integer idEmpleado;
    @Column(name = "NOMBRE")
    private String nombre;
    @Column(name = "APELLIDO")
    private String apellido;
    @Column(name = "TELEFONO")
    private String telefono;
    @Column(name = "ESTADO")
    private String estado;
    @Column(name = "ID_TIP_DOC_IDENTI")
    private String idTipDocIdenti;
    @Column(name = "DOC_IDENTI")
    private String docIdenti;
    @Column(name = "E_MAIL")
    private String eMail;
    @Column(name = "PROFESION")
    private String profesion;
    @Column(name = "ID_USUAR")
    private Integer idUsuar;

    public Empleado() {
    }

    public Empleado(Integer idEmpleado) {
        this.idEmpleado = idEmpleado;
    }

    public Integer getIdEmpleado() {
        return idEmpleado;
    }

    public void setIdEmpleado(Integer idEmpleado) {
        this.idEmpleado = idEmpleado;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getApellido() {
        return apellido;
    }

    public void setApellido(String apellido) {
        this.apellido = apellido;
    }

    public String getTelefono() {
        return telefono;
    }

    public void setTelefono(String telefono) {
        this.telefono = telefono;
    }

    public String getEstado() {
        return estado;
    }

    public void setEstado(String estado) {
        this.estado = estado;
    }

    public String getIdTipDocIdenti() {
        return idTipDocIdenti;
    }

    public void setIdTipDocIdenti(String idTipDocIdenti) {
        this.idTipDocIdenti = idTipDocIdenti;
    }

    public String getDocIdenti() {
        return docIdenti;
    }

    public void setDocIdenti(String docIdenti) {
        this.docIdenti = docIdenti;
    }

    public String getEMail() {
        return eMail;
    }

    public void setEMail(String eMail) {
        this.eMail = eMail;
    }

    public String getProfesion() {
        return profesion;
    }

    public void setProfesion(String profesion) {
        this.profesion = profesion;
    }

    public Integer getIdUsuar() {
        return idUsuar;
    }

    public void setIdUsuar(Integer idUsuar) {
        this.idUsuar = idUsuar;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idEmpleado != null ? idEmpleado.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Empleado)) {
            return false;
        }
        Empleado other = (Empleado) object;
        if ((this.idEmpleado == null && other.idEmpleado != null) || (this.idEmpleado != null && !this.idEmpleado.equals(other.idEmpleado))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entities.Empleado[ idEmpleado=" + idEmpleado + " ]";
    }
    
}
